//package com.wiiss.mock.controller;
//
//import com.alibaba.fastjson.JSONObject;
//import com.wiiss.bpmn.listener.mes.ItemInfo;
//import com.wiiss.bpmn.listener.wcs.vo.WcsResult;
//import com.wiiss.bpmn.listener.wip.vo.WipData;
//import com.wiiss.bpmn.listener.wip.vo.WipUnit;
//import com.wiiss.common.core.controller.BaseController;
//import com.wiiss.mock.domain.MockServer;
//import com.wiiss.mock.service.IMockServerService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//
///**
// * 虚拟服务Controller
// *
// * @author my
// * @date 2021-10-15
// */
//@Api(tags = "虚拟服务")
//@RestController
//@RequestMapping()
//@Slf4j
//public class MockServerAPI extends BaseController {
//
//    @Autowired
//    private IMockServerService mockServerService;
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("AGV-生成任务单")
//    @ApiImplicitParam(name = "genAgvSchedulingTask", value = "生成任务单", dataType = "String")
//    @PostMapping("/rcms/services/rest/hikRpcService/genAgvSchedulingTask")
//    public JSONObject genAgvSchedulingTask(@RequestBody String reqJson) {
//        log.info("生成任务单reqJson:[{}]", reqJson);
//        JSONObject obj = JSONObject.parseObject(reqJson);
//        String reqCode = obj.getString("reqCode");
//        String taskCode = obj.getString("taskCode");
//        MockServer mockServer = MockServer.builder().systemName("RCS").uri("/rcms/services/rest/hikRpcService/genAgvSchedulingTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        obj = JSONObject.parseObject(respJson);
//        obj.put("reqCode", reqCode);
//        respJson = JSONObject.toJSONString(obj);
//        log.info("生成任务单respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * 继续执行任务
//     */
//    @ApiOperation("AGV-继续执行任务")
//    @ApiImplicitParam(name = "continueTask", value = "继续执行任务", dataType = "String")
//    @PostMapping("/rcms/services/rest/hikRpcService/continueTask")
//    public JSONObject continueTask(@RequestBody String reqJson) {
//        log.info("继续执行任务reqJson:[{}]", reqJson);
//        JSONObject obj = JSONObject.parseObject(reqJson);
//        String reqCode = obj.getString("reqCode");
//        String taskCode = obj.getString("taskCode");
//        MockServer mockServer = MockServer.builder().systemName("RCS-HK").uri("/rcms/services/rest/hikRpcService/continueTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        obj = JSONObject.parseObject(respJson);
//        obj.put("reqCode", reqCode);
//        respJson = JSONObject.toJSONString(obj);
//        log.info("继续执行任务respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * 继续执行任务
//     */
//    @ApiOperation("AGV-取消任务")
//    @ApiImplicitParam(name = "cancelTask", value = "取消任务", dataType = "String")
//    @PostMapping("/rcms/services/rest/hikRpcService/cancelTask")
//    public JSONObject cancelTask(@RequestBody String reqJson) {
//        log.info("生成任务单reqJson:[{}]", reqJson);
//        JSONObject obj = JSONObject.parseObject(reqJson);
//        String reqCode = obj.getString("reqCode");
//        String taskCode = obj.getString("taskCode");
//        MockServer mockServer = MockServer.builder().systemName("RCS-HK").uri("/rcms/services/rest/hikRpcService/cancelTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        obj = JSONObject.parseObject(respJson);
//        obj.put("reqCode", reqCode);
//        respJson = JSONObject.toJSONString(obj);
//        log.info("取消任务respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//    /**
//     * 继续执行任务
//     */
//    @ApiOperation("AGV-查询状态")
//    @ApiImplicitParam(name = "cancelTask", value = "查询状态", dataType = "String")
//    @PostMapping("/databus/publish/agvStatus")
//    public JSONObject agvStatus(@RequestBody String reqJson) {
//        log.info("查询状态:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("RCS-HK").uri("/rcms/services/rest/hikRpcService/agvStatus").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("AGV-查询状态")
//    @ApiImplicitParam(name = "cancelTask", value = "查询状态", dataType = "String")
//    @PostMapping("/databus/publish/agvEffic")
//    public JSONObject agvEffic(@RequestBody String reqJson) {
//        log.info("查询状态:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("RCS-HK").uri("/rcms/services/rest/hikRpcService/agvEffic").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//    /**
//     * 获取可用库位
//     */
//    @ApiOperation("WMS-获取可用库位")
//    @ApiImplicitParam(name = "requestAvailableLocation", value = "获取可用库位", dataType = "String")
//    @PostMapping("/wms/requestAvailableLocation")
//    public JSONObject requestAvailableLocation(@RequestBody String reqJson) {
//        log.info("获取可用库位reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WMS").uri("/wms/requestAvailableLocation").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        log.info("获取可用库位respJson:[{}]", respJson);
//        return jsonObject;
//    }
//
//
//    /**
//     * 根据传入的库列表，查询库中全部物料、载具列表
//     */
//    @ApiOperation("WMS-根据传入的库列表，查询库中全部物料、载具列表")
//    @ApiImplicitParam(name = "requestAvailableLocation", value = "根据传入的库列表，查询库中全部物料、载具列表", dataType = "String")
//    @PostMapping("/wms/requestCarrierMaterialList")
//    public JSONObject requestCarrierMaterialList(@RequestBody String reqJson) {
//        log.info("查询库中全部物料、载具列表reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WMS").uri("/wms/requestCarrierMaterialList").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        log.info("查询库中全部物料、载具列表respJson:[{}]", respJson);
//        return jsonObject;
//    }
//
//    /**
//     * 创建WIP任务
//     */
//    @ApiOperation("WIP-创建任务")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/v1/createWipTask")
//    public JSONObject createWipJob(@RequestBody String reqJson) {
//        log.info("创建WIP任务reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/createWipTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("创建WIP任务respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * AGV agvLeft
//     */
//    @ApiOperation("WIP-AGV离开")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/v1/agvLeft")
//    public JSONObject agvLeft(@RequestBody String reqJson) {
//        log.info("AGV AGV离开 reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/mock/agvleft").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("AGV AGV离开 respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * WIP AGV到达
//     */
//    @ApiOperation("WIP-AGV到达")
//    @ApiImplicitParam(name = "agvArrived", value = "AGV ARRIVED", dataType = "String")
//    @PostMapping("/wip/v1/agvArrived")
//    public JSONObject agvArrived(@RequestBody String reqJson) {
//        log.info("AGV ARRIVED reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/agvarrived").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("AGV ARRIVED respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * WIP 取消任务
//     */
//    @ApiOperation("WIP-取消任务")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/mock/cancelWipTask")
//    public JSONObject cancelTaskWip(@RequestBody String reqJson) {
//        log.info("取消任务reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/mock/cancelWipTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("取消任务respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * 获取入库库位
//     */
//    @ApiOperation("WMS-WIISS获取入库库位")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/v1/getInWipUnit")
//    public WipData<WipUnit> getInWipUnit(@RequestBody String reqJson) {
//        log.info("获取入库库位reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/getInWipUnit").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WipData<WipUnit> wipData = JSONObject.parseObject(respJson, WipData.class);
//        log.info("获取入库库位wipData:[{}]", wipData);
//        return wipData;
//    }
//
//    /**
//     * 获取出库库位
//     */
//    @ApiOperation("WMS-WIISS获取出库库位")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/v1/getOutWipUnit")
//    public WipData<WipUnit> getOutWipUnit(@RequestBody String reqJson) {
//        log.info("获取出库库位reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/getOutWipUnit").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WipData<WipUnit> wipData = JSONObject.parseObject(respJson, WipData.class);
//        log.info("获取出库库位wipData:[{}]", wipData);
//        return wipData;
//    }
//
//    /**
//     * 释放占用库位
//     */
//    @ApiOperation("WMS-WIISS释放占用库位")
//    @ApiImplicitParam(name = "wipApi", value = "reqJson", dataType = "String")
//    @PostMapping("/wip/v1/freeEmployWipUnit")
//    public WipData<WipUnit> freeEmployWipUnit(@RequestBody String reqJson) {
//        log.info("释放占用库位reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/freeEmployWipUnit").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WipData<WipUnit> wipData = JSONObject.parseObject(respJson, WipData.class);
//        log.info("释放占用库位wipData:[{}]", wipData);
//        return wipData;
//    }
//
//    /**
//     * 查询WIP状态
//     */
//    @ApiOperation("WIP-查询WIP状态")
//    @ApiImplicitParam(name = "wipApi", value = "wipApi", dataType = "String")
//    @PostMapping("/wip/v1/wipStatus")
//    public JSONObject wipStatus(@RequestBody String reqJson) {
//        log.info("查询WIP状态reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/wipStatus").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("查询WIP状态respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * WCS发送任务
//     */
//    @ApiOperation("WCS发送任务")
//    @ApiImplicitParam(name = "reqJson", value = "WCS发送任务", dataType = "String" ,example = "{\n" +
//            "\t\"agvId\": \"\",\n" +
//            "\t\"missionId\": \"33\",\n" +
//            "\t\"missionType\": \"port_work\",\n" +
//            "\t\"missionLevel\": 1,\n" +
//            "\t\"missionName\": \"任务名称_TEST\",\n" +
//            "\t\"materialNo\": \"NO1\",\n" +
//            "\t\"systemType\": \"MCS\",\n" +
//            "\t\"taskCode\": \"MCS-MISSION-CODE\",\n" +
//            "\t\t\"missionInfo\": {\n" +
//            "\t\t\"downCode\": 27,\n" +
//            "\t\t\"missionId\": \"33\",\n" +
//            "\t\t\"num\": 1,\n" +
//            "\t\t\"upCode\": -1\n" +
//            "\t}\n" +
//            "}")
//    @PostMapping("/wcs/mission/mcsFinishMission")
//    public WcsResult sendMission(@RequestBody String reqJson) {
//        log.info("WCS发送任务reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WCS").uri("/wcs/mission/sendMission").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WcsResult result = JSONObject.parseObject(respJson, WcsResult.class);
//        log.info("WCS发送任务result:[{}]", result);
//        return result;
//    }
//
//    /**
//     * WCS取消任务
//     */
//    @ApiOperation("WCS取消任务")
//    @ApiImplicitParam(name = "reqJson", value = "WCS取消任务", dataType = "String" ,example = "123")
//    @PostMapping("/wcs/mission/cancelMissionRD")
//    public WcsResult cancelMission(@RequestBody String reqJson) {
//        log.info("WCS取消任务reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WCS").uri("/wcs/mission/cancelMissionRD").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WcsResult result = JSONObject.parseObject(respJson, WcsResult.class);
//        log.info("WCS取消任务result:[{}]", result);
//        return result;
//    }
//
//    /**
//     * WCS发送任务
//     */
//    @ApiOperation("WCS完成任务")
//    @ApiImplicitParam(name = "reqJson", value = "WCS完成任务", dataType = "String" ,example = "123123")
//    @PostMapping("/wcs/mission/finishMission")
//    public WcsResult finishMission(@RequestBody String reqJson) {
//        log.info("WCS完成任务reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WCS").uri("/wcs/mission/finishMission").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        WcsResult result = JSONObject.parseObject(respJson, WcsResult.class);
//        log.info("WCS完成任务result:[{}]", result);
//        return result;
//    }
//
//    /**
//     * 机台下料 用载具码或批次号一键带出
//     */
//    @ApiOperation("机台下料 用载具码一键带出")
//    @ApiImplicitParam(name = "reqJson", value = "机台下料 用载具码一键带出")
//    @PostMapping("/api/getItemInfoO")
//    public JSONObject getItemInfo(@RequestBody ItemInfo reqJson) {
//        log.info("机台下料 用载具码一键带出 reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/CallWCF/WCFInvoke/getItemInfo").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("机台下料 用载具码一键带出 result:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    @ApiOperation("通知WIP接收错误信息")
//    @ApiImplicitParam(name = "materialCarryWarning", value = "WIP接收错误信息", dataType = "String")
//    @PostMapping("/wip/v1/materialCarryWarning")
//    public JSONObject materialCarryWarning(@RequestBody String reqJson) {
//        log.info("wip接收参数:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/materialCarryWarning").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        log.info("生成任务单respJson:[{}]", respJson);
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
//        return jsonObject;
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("AGV-生成任务单")
//    @ApiImplicitParam(name = "newTask", value = "生成任务单", dataType = "String")
//    @PostMapping("/Rcs/newTask")
//    public JSONObject genAgvSchedulingTaskXJ(@RequestBody String reqJson) {
//        log.info("生成任务单reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("RCS-XJ").uri("/Rcs/newTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("AGV-完成任务单")
//    @ApiImplicitParam(name = "completeTask", value = "完成任务单", dataType = "String")
//    @PostMapping("/Rcs/completeTask")
//    public JSONObject completeTaskXJ(@RequestBody String reqJson) {
//        log.info("完成任务单reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("RCS-XJ").uri("/Rcs/completeTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("AGV-取消任务单")
//    @ApiImplicitParam(name = "cancelTask", value = "取消任务单", dataType = "String")
//    @PostMapping("/Rcs/cancelTask")
//    public JSONObject cancelTaskXJ(@RequestBody String reqJson) {
//        log.info("取消任务单reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("RCS-XJ").uri("/Rcs/cancelTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("eap接受mcs任务")
//    @PostMapping("/apigateway/invoke/deviceid/Agv/createLineDockingTask")
//    public JSONObject createLineDockingTask(@RequestBody String reqJson) {
//        MockServer mockServer = MockServer.builder().systemName("EAP").uri("/createLineDockingTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//
//    /**
//     * 库到库任务MES提供TASKID
//     */
//    @ApiOperation("mes提供TaskId")
//    @PostMapping("/InventoryAllocation")
//    public JSONObject inventoryAllocation(@RequestBody String reqJson) {
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/InventoryAllocation").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("wip批次状态同步数据返回")
//    @PostMapping("/wip/v1/SyncLotState")
//    public JSONObject SyncLotState(@RequestBody String reqJson) {
//        MockServer mockServer = MockServer.builder().systemName("WIP").uri("/wip/v1/SyncLotState").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("mcs通知mes完成任务")
//    @PostMapping("/api/updateTaskStatus")
//    public JSONObject updateTaskStatus(@RequestBody String reqJson) {
//        log.info("mcs通知mes完成任务:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/updateTaskStatus").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//    @ApiOperation("mcs通知mes同步物料")
//    @PostMapping("/CallWCF/WCFInvoke/itemStockOut")
//    public JSONObject itemStockOut(@RequestBody String reqJson) {
//        log.info("mcs通知mes同步物料:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/itemStockIn").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//    @ApiOperation("mcs通知mes同步物料")
//    @PostMapping("/CallWCF/WCFInvoke/itemStockIn")
//    public JSONObject itemStockIn(@RequestBody String reqJson) {
//        log.info("mcs通知mes同步物料:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/itemStockIn").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("请求通行")
//    @PostMapping("/lcs/v1/requestInto")
//    public JSONObject requestInto(@RequestBody String reqJson) {
//        log.info("请求通行:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/requestInto").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("下发跨层取/放任务")
//    @PostMapping("/lcs/v1/sendTask")
//    public JSONObject sendTask(@RequestBody String reqJson) {
//        log.info("下发跨层取/放任务:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/sendTask").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    /**
//     * 查询虚拟服务列表
//     */
//    @ApiOperation("通行完成")
//    @PostMapping("/lcs/v1/intoFinish")
//    public JSONObject intoFinish(@RequestBody String reqJson) {
//        log.info("请求通行:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/intoFinish").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("查询提升机状态")
//    @PostMapping("/lcs/v1/deviceStatus")
//    public JSONObject deviceStatus(@RequestBody String reqJson) {
//        log.info("查询提升机状态:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/deviceStatus").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("查询提升机统计数据")
//    @PostMapping("/lcs/v1/liftStatistics")
//    public JSONObject liftStatistics(@RequestBody String reqJson) {
//        log.info("查询提升机状态:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/liftStatistics").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("查询提升机统计数据")
//    @PostMapping("/lcs/v1/liftManualDocking")
//    public JSONObject liftManualDocking(@RequestBody String reqJson) {
//        log.info("查询提升机状态:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("LCS").uri("/liftStatistics").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        JSONObject jsonObject = JSONObject.parseObject(respJson);
////        Random random = new Random();
////        int randomNumber = random.nextInt(100);
////        jsonObject.put("value", randomNumber);
//        return jsonObject;
//    }
//
//    @ApiOperation("查询mes载具信息")
//    @ApiImplicitParam(name = "getCarrierInfo", value = "查询mes载具信息", dataType = "String")
//    @PostMapping("/api/getCarrierInfo")
//    public JSONObject getCarrierInfo(@RequestBody String reqJson) {
//        log.info("查询mes载具信息reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/getCarrierInfo").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("查询mes物料信息")
//    @ApiImplicitParam(name = "getItemInfo", value = "查询mes物料信息", dataType = "String")
//    @PostMapping("/api/getItemInfo")
//    public JSONObject getItemInfo(@RequestBody String reqJson) {
//        log.info("查询mes物料信息reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/getItemInfo").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("通知mes物料入库")
//    @ApiImplicitParam(name = "itemStockIn", value = "通知mes物料入库", dataType = "String")
//    @PostMapping("/api/itemStockIn")
//    public JSONObject itemStockInN(@RequestBody String reqJson) {
//        log.info("通知mes物料入库reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/itemStockIn").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//
//    @ApiOperation("通知mes物料出库")
//    @ApiImplicitParam(name = "cancelTask", value = "通知mes物料出库", dataType = "String")
//    @PostMapping("/api/itemStockOut")
//    public JSONObject itemStockOutN(@RequestBody String reqJson) {
//        log.info("通知mes物料出库reqJson:[{}]", reqJson);
//        MockServer mockServer = MockServer.builder().systemName("MES").uri("/itemStockOut").build();
//        mockServer = mockServerService.selectMockServerList(mockServer).get(0);
//        String respJson = mockServer.getRespJson();
//        return JSONObject.parseObject(respJson);
//    }
//}
